<?php 

/**
 * AUTHCODE NOSQL
 * @author HxBreak
 * @Description: todo
 * @Date 2017年6月7日 上午11:40:01 
 * @File authcode.php
 */

require '../vendor/autoload.php';
header('Content-Type: image/jpeg');
header("Cache-Control: no-cache");

use Gregwar\Captcha\CaptchaBuilder; 

session_set_cookie_params(1200);
session_start();

$build = new CaptchaBuilder;

$build->build();

$build->output();

$_SESSION['phrase'] = $build->getPhrase();

?>